//首页
//const home = resolve => require(['@/containers/crm/home'], resolve);

//客户管理
//客户列表
const customerList = resolve => require(['@/containers/crm/customerManagement/customerList'], resolve);
const checkDetail = resolve => require(['@/containers/crm/customerManagement/customerList/checkDetail'], resolve);
const edit = resolve => require(['@/containers/crm/customerManagement/customerList/edit'], resolve);
const createCustomer = resolve => require(['@/containers/crm/customerManagement/customerList/createCustomer'], resolve);
const returnVisit = resolve => require(['@/containers/crm/customerManagement/customerList/returnVisit'], resolve);
const toAppointment = resolve => require(['@/containers/crm/customerManagement/customerList/toAppointment'], resolve);
    //会员积分
const memberScores = resolve => require(['@/containers/crm/customerManagement/memberScores'], resolve);
const scoreDetail = resolve => require(['@/containers/crm/customerManagement/memberScores/checkDetail'], resolve);
    //会员等级
const memberLevel = resolve => require(['@/containers/crm/customerManagement/memberLevel'], resolve);
const createEquity = resolve => require(['@/containers/crm/customerManagement/memberLevel/createEquity'], resolve);
const createLevel = resolve => require(['@/containers/crm/customerManagement/memberLevel/createLevel'], resolve);
const editLevel = resolve => require(['@/containers/crm/customerManagement/memberLevel/editLevel'], resolve);
const editEquity = resolve => require(['@/containers/crm/customerManagement/memberLevel/editEquity'], resolve);

//预约管理
//const bookManagement = resolve => require(['@/containers/crm/bookManagement'], resolve);
const bookedCustomer = resolve => require(['@/containers/crm/bookManagement/bookedCustomer'], resolve);
const bookedToShop = resolve => require(['@/containers/crm/bookManagement/bookedToShop'], resolve);
const allBooked = resolve => require(['@/containers/crm/bookManagement/allBooked'], resolve);

const seeDetail = resolve => require(['@/containers/crm/bookManagement/bookedCustomer/seeDetail'], resolve);
const seeDetailAll = resolve => require(['@/containers/crm/bookManagement/allBooked/seeDetail'], resolve);
const seeDetailShop = resolve => require(['@/containers/crm/bookManagement/bookedToShop/seeDetail'], resolve);
const operateOrder = resolve => require(['@/containers/crm/bookManagement/bookedCustomer/operateOrder'], resolve);
const editOrder = resolve => require(['@/containers/crm/bookManagement/bookedCustomer/editOrder'], resolve);
const verifyOrder = resolve => require(['@/containers/crm/bookManagement/bookedCustomer/verifyOrder'], resolve);
const operateOrderShop = resolve => require(['@/containers/crm/bookManagement/bookedToShop/operateOrder'], resolve);
const followUp = resolve => require(['@/containers/crm/bookManagement/bookedToShop/followUp'], resolve);
const treat = resolve => require(['@/containers/crm/bookManagement/bookedToShop/treat'], resolve);
const allFollowUp = resolve => require(['@/containers/crm/bookManagement/allBooked/followUp'], resolve);
//营销宝典
//const marketerStrategy = resolve => require(['@/containers/crm/marketerStrategy'], resolve);
const attentionMatter = resolve => require(['@/containers/crm/marketingStrategy/attentionMatter'], resolve);
const returnInterview = resolve => require(['@/containers/crm/marketingStrategy/returnInterview'], resolve);
const createMatter = resolve => require(['@/containers/crm/marketingStrategy/attentionMatter/createMatter'], resolve);
const editMatter = resolve => require(['@/containers/crm/marketingStrategy/attentionMatter/editMatter'], resolve);
const createTalking = resolve => require(['@/containers/crm/marketingStrategy/returnInterview/createTalking'], resolve);
const editTalking = resolve => require(['@/containers/crm/marketingStrategy/returnInterview/editTalking'], resolve);

//参数配置
//const parameterConfig = resolve => require(['@/containers/crm/parameterConfig'], resolve);
const dropdownConfig = resolve => require(['@/containers/crm/parameterConfig/dropdownConfig'], resolve);
const memberConfig = resolve => require(['@/containers/crm/parameterConfig/memberConfig'], resolve);

export default [
    // 客户管理
    {
        path: 'customerList',
        name: 'customerList',
        module: 'crm',
        className: '客户管理',
        label: '客户列表',
        iconUri: require('@/assets/img/icon_customermanagement.png'),
        component: customerList,
    },
    {
        path: 'memberLevel',
        name: 'memberLevel',
        module: 'crm',
        className: '客户管理',
        label: '会员等级',
        iconUri: require('@/assets/img/icon_customermanagement.png'),
        component: memberLevel
    },
    {
        path: 'memberScores',
        name: 'memberScores',
        module: 'crm',
        className: '客户管理',
        label: '会员积分',
        iconUri: require('@/assets/img/icon_customermanagement.png'),
        component: memberScores
    },
    //客户管理四级页面
    {
        path: 'checkDetail',
        name: 'checkDetail',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '客户列表',
        generatedBy: 'customerList',
        component: checkDetail
    },
    {
        path: 'edit',
        name: 'edit',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '客户列表',
        generatedBy: 'customerList',
        component: edit
    },
    {
        path: 'createCustomer',
        name: 'createCustomer',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '客户列表',
        generatedBy: 'customerList',
        component: createCustomer
    },
    {
        path: 'returnVisit',
        name: 'returnVisit',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '客户列表',
        generatedBy: 'customerList',
        component: returnVisit
    },
    {
        path: 'toAppointment',
        name: 'toAppointment',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '客户列表',
        generatedBy: 'customerList',
        component: toAppointment
    },
    {
        path: 'createEquity',
        name: 'createEquity',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '会员等级',
        generatedBy: 'memberLevel',
        component: createEquity
    },
    {
        path: 'createLevel',
        name: 'createLevel',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '会员等级',
        generatedBy: 'memberLevel',
        component: createLevel
    },
    {
        path: 'editLevel',
        name: 'editLevel',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '会员等级',
        generatedBy: 'memberLevel',
        component: editLevel
    },
    {
        path: 'editEquity',
        name: 'editEquity',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '会员等级',
        generatedBy: 'memberLevel',
        component: editEquity
    },
    {
        path: 'scoreDetail',
        name: 'scoreDetail',
        module: 'crm',
        unlist: true,
        className: '客户管理',
        label: '会员积分',
        generatedBy: 'memberScores',
        component: scoreDetail
    },
    
    //预约管理
    {
        path: 'bookedCustomer',
        name: 'bookedCustomer',
        module: 'crm',
        className: '预约管理',
        label: '预约审核',
        iconUri: require('@/assets/img/icon_appointmentmanagement.png'),
        component: bookedCustomer
    },
    {
        path: 'bookedToShop',
        name: 'bookedToShop',
        module: 'crm',
        className: '预约管理',
        label: '预约接待',
        iconUri: require('@/assets/img/icon_appointmentmanagement.png'),
        component: bookedToShop
    },
    {
        path: 'allBooked',
        name: 'allBooked',
        module: 'crm',
        className: '预约管理',
        label: '预约查询',
        iconUri: require('@/assets/img/icon_appointmentmanagement.png'),
        component: allBooked
    },
    // 预约管理里面跳转的页面
    {
        path: 'seeDetail',
        name: 'seeDetail',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约审核',
        generatedBy: 'bookedCustomer',
        component: seeDetail
    },
    {
        path: 'operateOrder',
        name: 'operateOrder',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约审核',
        generatedBy: 'bookedCustomer',
        component: operateOrder
    },
    {
        path: 'verifyOrder',
        name: 'verifyOrder',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约审核',
        generatedBy: 'bookedCustomer',
        component: verifyOrder
    },
    {
        path: 'editOrder',
        name: 'editOrder',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约审核',
        generatedBy: 'bookedCustomer',
        component: editOrder
    },
    // 预约接待里面跳转的页面
    {
        path: 'seeDetailShop',
        name: 'seeDetailShop',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约接待',
        generatedBy: 'bookedToShop',
        component: seeDetailShop
    },
    {
        path: 'operateOrderShop',
        name: 'operateOrderShop',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约接待',
        generatedBy: 'bookedToShop',
        component: operateOrderShop
    },
    {
        path: 'followUp',
        name: 'followUp',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约接待',
        generatedBy: 'bookedToShop',
        component: followUp
    },
    {
        path: 'treat',
        name: 'treat',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约接待',
        generatedBy: 'bookedToShop',
        component: treat
    },
    // 预约查询的详情
    {
        path: 'seeDetailAll',
        name: 'seeDetailAll',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约查询',
        generatedBy: 'allBooked',
        component: seeDetailAll
    },
    {
        path: 'allFollowUp',
        name: 'allFollowUp',
        module: 'crm',
        unlist: true,
        className: '预约管理',
        label: '预约查询',
        generatedBy: 'allBooked',
        component: allFollowUp
    },
    
    //营销宝典editTalking
    {
        path: 'attentionMatter',
        name: 'attentionMatter',
        module: 'crm',
        className: '营销宝典',
        label: '注意事项',
        iconUri: require('@/assets/img/icon_parameterconfiguration.png'),
        component: attentionMatter
    },
    {
        path: 'returnInterview',
        name: 'returnInterview',
        module: 'crm',
        className: '营销宝典',
        label: '回访话术',
        iconUri: require('@/assets/img/icon_parameterconfiguration.png'),
        component: returnInterview
    },
    {
        path: 'createTalking',
        name: 'createTalking',
        module: 'crm',
        unlist: true,
        className: '营销宝典',
        label: '回访话术',
        generatedBy: 'returnInterview',
        component: createTalking
    },
    {
        path: 'editTalking',
        name: 'editTalking',
        module: 'crm',
        unlist: true,
        className: '营销宝典',
        label: '回访话术',
        generatedBy: 'returnInterview',
        component: editTalking
    },
    {
        path: 'createMatter',
        name: 'createMatter',
        module: 'crm',
        unlist: true,
        className: '营销宝典',
        label: '注意事项',
        generatedBy: 'attentionMatter',
        component: createMatter
    },
    {
        path: 'editMatter',
        name: 'editMatter',
        module: 'crm',
        unlist: true,
        className: '营销宝典',
        label: '注意事项',
        generatedBy: 'attentionMatter',
        component: editMatter
    },
    //参数配置
    // {
    //     path: 'dropdownConfig',
    //     name: 'dropdownConfig',
    //     module: 'crm',
    //     className: '参数配置',
    //     label: '下拉框配置',
    //     iconUri: require('@/assets/img/icon_marketingcode.png'),
    //     component: dropdownConfig
    // },
    // {
    //     path: 'memberConfig',
    //     name: 'memberConfig',
    //     module: 'crm',
    //     className: '参数配置',
    //     label: '会员拓展配置',
    //     component: memberConfig
    // }
]